package com.itheima.mapper;


import com.github.pagehelper.Page;
import com.itheima.project.Password;
import com.itheima.project.emp.Emp;
import com.itheima.project.emp.EmpQueryParam;
import com.itheima.project.log.LoginInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface EmpMapper {

  // List<Emp> list(Integer page, Integer pageSize);
 // @Select("select t1.*,t2.name deptName from emp as t1 left join dept as t2 on t1.dept_id = t2.id")
  // Page<Emp> list();

   Page<Emp> list(EmpQueryParam eqp);


    void saveEmp(Emp emp);

    void deletById(List<Integer> ids);

    void updateEmp(Emp emp);

    Emp getInfo(Integer id);

    List<Emp> queryAllEmp();

    Emp getUsernameAndPassword(LoginInfo emp);

 void changePassword(Password password);
}
